<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增持仓')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-postion-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">证券代码：</label>
                <div class="col-sm-8">
                    <input name="secCode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">证券名称：</label>
                <div class="col-sm-8">
                    <input name="secName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">股票余额：</label>
                <div class="col-sm-8">
                    <input name="secBalance" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可用余额：</label>
                <div class="col-sm-8">
                    <input name="secAvailable" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成本：</label>
                <div class="col-sm-8">
                    <input name="secCost" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">市价：</label>
                <div class="col-sm-8">
                    <input name="secMarket" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">持有天数：</label>
                <div class="col-sm-8">
                    <input name="secDateNum" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">持有帐号：</label>
                <div class="col-sm-8">
                    <input name="secAccount" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "book/postion"
        $("#form-postion-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-postion-add').serialize());
            }
        }
    </script>
</body>
</html>